<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <script src="./bower_components/knockout/dist/knockout.js"></script>
    <title>Document</title>
</head>
<body>
    <h1 data-bind="text: city"> </h1>
    <p data-bind="with: coords">
        latitude  <span data-bind="text: latitude"></span><br/>,
        longitude <span data-bind="text: longitude"></span><br/>
        city      <span data-bind="text:$root.city"></span>
    </p>

    <script type="text/javascript">
        ko.applyBindings({
            city: "city",
            coords: {
                latitude:  "lat",
                longitude: "long"
            }
        });
    </script>


</body>
</html>